﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DcsGauges.DataStructures;
using DcsGauges.Gui.Gauges.ValueConverters;
using DcsGauges.Gui.Rendering;
using DcsGauges.Shared.DataStructures;

namespace DcsGauges.Gui.Gauges.Concrete
{
    class EnginePressureGauge : CircularGauge
    {
        public EnginePressureGauge(GuiRenderableBase parent, URect area, DcsProperty dataProperty) : base(parent, area,
            dataProperty,
            new LinearConverter(new InOutMapping(0.0f, MathEx.Deg2Rad(135.0f)), new InOutMapping(1.0f, MathEx.Deg2Rad(410.0f))), //Degree values from Texture!
            TextureManager.GetTexture("Textures/Gauges/Backgrounds/EnginePressure"), 
            TextureManager.GetTexture("Textures/Gauges/Needles/EngineGaugesNeedle"))
        {

        }
    }
}
